package com.ruoyi.bl.domain;

import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地域区域对象 bl_users_region
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
public class BlUsersRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 品牌 */
    @Excel(name = "商户名称", targetAttr = "companyName", type = Excel.Type.EXPORT)
    private SysDept sysDept;

    /** 表id */
    private Long regionId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String regionName;

    /** 地区等级 分省市县区 */
    @Excel(name = "地区等级 分省市县区")
    private Integer level;

    /** 父id */
    @Excel(name = "父id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public void setRegionId(Long regionId)
    {
        this.regionId = regionId;
    }

    public Long getRegionId()
    {
        return regionId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setRegionName(String regionName)
    {
        this.regionName = regionName;
    }

    public String getRegionName()
    {
        return regionName;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("regionId", getRegionId())
                .append("deptId", getDeptId())
                .append("regionName", getRegionName())
                .append("level", getLevel())
                .append("parentId", getParentId())
                .append("ancestors", getAncestors())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}